﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class FightingMoveInfos : MonoBehaviour
{	
	public enum FightingMoveType
	{
		//PLAYER
		PUNCH = 0,
		LOWKICK,

		// SPIDER
		EYEBEAM,

		COUNT
	}

	[System.Serializable]
	public class FightingMoveData
	{
		public FightingMoveType m_MoveType;
		public float m_BaseDamage;
	}

	public List<FightingMoveData> m_FightingMoveDatas;

	private Dictionary<FightingMoveType, float> m_MoveInfos;
	public float GetMoveDamage(FightingMoveType i_MoveType)
	{
		if(m_MoveInfos.ContainsKey(i_MoveType))
		{
			return m_MoveInfos[i_MoveType];
		}
		else
		{
			return 0f;
		}
	}

	private void Awake()
	{
		m_MoveInfos = new Dictionary<FightingMoveType, float>();
		for(int i = 0; i < m_FightingMoveDatas.Count; i++)
		{
			m_MoveInfos.Add (m_FightingMoveDatas[i].m_MoveType, m_FightingMoveDatas[i].m_BaseDamage);
		}
	}
}
